import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.VirtualKeyboard 2.15


Window {
    id: window
    width: 640
    height: 480
    visible: true
    title: qsTr("MIDI Data Extract")

    Component.onCompleted: {
        operating.appendList.connect(fileList.appendItem)
    }

    Row{
        anchors.fill: parent
        FileList {
            id:fileList
            anchors.leftMargin: parent.left
            width: parent.width * 0.8
            height: parent.height
        }
        Operating {
            id:operating
            anchors.leftMargin: fileList.left
            width: parent.width * 0.2
            height: parent.height
        }
    }


    InputPanel {
        id: inputPanel
        z: 99
        x: 0
        y: window.height
        width: window.width

        states: State {
            name: "visible"
            when: inputPanel.active
            PropertyChanges {
                target: inputPanel
                y: window.height - inputPanel.height
            }
        }
        transitions: Transition {
            from: ""
            to: "visible"
            reversible: true
            ParallelAnimation {
                NumberAnimation {
                    properties: "y"
                    duration: 250
                    easing.type: Easing.InOutQuad
                }
            }
        }
    }
}
